package com.toutiao.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.toutiao.dao.NewsCateMapper;
import com.toutiao.dao.model.NewsCate;
import com.toutiao.dao.model.NewsCateExample;

@Service
public class NewsCateService {
	@Autowired
	private NewsCateMapper newsCateMapper;

	public int countByExample(NewsCateExample example) {
		return this.newsCateMapper.countByExample(example);
	}

	public NewsCate selectByPrimaryKey(Integer id) {
		return this.newsCateMapper.selectByPrimaryKey(id);
	}

	public List<NewsCate> selectByExample(NewsCateExample example) {
		return this.newsCateMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.newsCateMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(NewsCate record) {
		return this.newsCateMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(NewsCate record) {
		return this.newsCateMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(NewsCateExample example) {
		return this.newsCateMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(NewsCate record, NewsCateExample example) {
		return this.newsCateMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(NewsCate record, NewsCateExample example) {
		return this.newsCateMapper.updateByExample(record, example);
	}

	public int insert(NewsCate record) {
		return this.newsCateMapper.insert(record);
	}

	public int insertSelective(NewsCate record) {
		return this.newsCateMapper.insertSelective(record);
	}

}
